﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Location
{
    public interface ILocation
    {
        int AddLocation(decimal latitude, decimal longitude, string cityName, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        int AddLocation(decimal latitude, decimal longitude, int countryId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        int AddLocation(decimal latitide, decimal longitude, ref NutriLeaf.Web.Model.NutriLeafDBEntities context); // tracks automatically in which country this point is (Hint : Use Location Services form Internet)

        Model.Location GetLocation(int locationId, ref Model.NutriLeafDBEntities context);

        void RemoveLocation(int locationId, ref Model.NutriLeafDBEntities context);

        void UpdateLocation(Model.Location location, ref Model.NutriLeafDBEntities context);

    }
}